package main

import "fmt"

type Point struct {
	x int
	y int
}

func main() {
	i1 := new(int)
	*i1 = 1
	fmt.Printf("%p, %d,%d\n", i1, i1, *i1)

	p1 := new(Point)
	p1.x = 1
	p1.y = 2
	fmt.Printf("%v\n", p1)

	p2 := Point{1, 2}
	fmt.Printf("%v\n", p2)
}
